
<?php
$DocRoot = $_SERVER['DOCUMENT_ROOT'];
include_once "$DocRoot/woflow/model/entity.php";
class OrgPreferences extends Entity
{
	public function __construct($bReadOnly=false)
	{
		parent::__construct("org_preferences", "orgID", $bReadOnly=false);
	}
	public function getOrgID()
	{
		return $this->orgID;

	}
	public function setOrgID($orgID)
	{
		$this->orgID = $orgID;

	}
	public function getPrefEmailOnAllEvents()
	{
		return $this->prefEmailOnAllEvents;

	}
	public function setPrefEmailOnAllEvents($prefEmailOnAllEvents)
	{
		$this->prefEmailOnAllEvents = $prefEmailOnAllEvents;

	}
	public function getPrefEmailOnIncoming()
	{
		return $this->prefEmailOnIncoming;

	}
	public function setPrefEmailOnIncoming($prefEmailOnIncoming)
	{
		$this->prefEmailOnIncoming = $prefEmailOnIncoming;

	}
	public function getPrefEmailOnPokes()
	{
		return $this->prefEmailOnPokes;

	}
	public function setPrefEmailOnPokes($prefEmailOnPokes)
	{
		$this->prefEmailOnPokes = $prefEmailOnPokes;

	}
	public function getPrefExtension()
	{
		return $this->prefExtension;

	}
	public function setPrefExtension($prefExtension)
	{
		$this->prefExtension = $prefExtension;

	}
	public function toJSON()
	{
		return json_decode(
			array(
				"orgID" => $this->orgID,
				"prefEmailOnAllEvents" => $this->prefEmailOnAllEvents,
				"prefEmailOnIncoming" => $this->prefEmailOnIncoming,
				"prefEmailOnPokes" => $this->prefEmailOnPokes,
				"prefExtension" => $this->prefExtension
			)
		);

	}

	private $orgID;
	private $prefEmailOnAllEvents;
	private $prefEmailOnIncoming;
	private $prefEmailOnPokes;
	private $prefExtension;
}
?>
